update from Olaf.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 25 Jun 2005 19:59:25 +0000 (19:59 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 25 Jun 2005 19:59:25 +0000 (19:59 +0000)
gpsbabel/pathaway.c

index 26f45147e01e45997a34e4bdafd9d1770722a2ec..ea1fd2a1d6d0e9125c1f5a000b120e8d99f8124a 100644 (file)
@@ -66,7 +66,7 @@ static arglist_t ppdb_args[] =
        {"dbname", &dbname, "Database name", NULL, ARGTYPE_STRING},
        {"deficon", &deficon, "Default icon name", NULL, ARGTYPE_STRING},
        {"snlen", &snlen_opt, "Length of generated shortnames", NULL, ARGTYPE_INT },
-       {0, 0, 0, 0 }
+       {0, 0, 0, 0, 0 }
 };
 
 static void 
@@ -266,7 +266,7 @@ double ppdb_decode_coord(const char *str)
 
            if (*str == 'O') german_release = 1;
            
-           *tmp = strchr(str, ' ');
+           tmp = strchr(str, ' ');
            if ((tmp) && (tmp - str < 4))
            {
                CHECK_INP(3, sscanf(str,"%c%d %lf", &dir, &deg, &val));